package com.wechat.scheme.entity.base;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.util.Date;

@Getter
@Setter
@MappedSuperclass
public class BaseEntity extends AbstractIdEntity {

    /**
     * 创建人ID
     */
    @Column(name ="create_id" )
    private String createId;

    /**
     * 创建人
     */
    @Column(name ="creater" )
    private String creater;

    /**
     * 创建时间
     */
    @Column(name ="created" )
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date created;

    /**
     * 修改人ID
     */
    @Column(name ="modifier_id"  )
    private String modifierId;

    /**
     * 修改人
     */
    @Column(name ="modifier"  )
    private String modifier;

    /**
     * 修改时间
     */
    @Column(name ="modified"  )
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date modified;

    /**
     * 是否删除 1删除0未删除
     */
    @Column(name ="deleted" )
    private Boolean deleted = false;



}
